package com.notary.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 赋强执行送达信息
 * @author laohe
 * @since 2023-04-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_execute_sent")
@ApiModel(value = "ExecuteSent对象", description = "赋强执行送达信息")
public class ExecuteSent implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    @ApiModelProperty(value = "卷宗ID")
    private Long contractId;

    @ApiModelProperty(value = "接收人姓名")
    private String personName;

    @ApiModelProperty(value = "接收地址:手机号码、邮箱、地址")
    private String receive;

    @ApiModelProperty(value = "送达文件类型：1 核实函 2 执行公证书")
    private Integer typeFile;

    @ApiModelProperty(value = "送达方式：1 短信 2 邮件 3 微信 4 快递")
    private Integer sentWay;

    @ApiModelProperty(value = "文件内容")
    private String content;

    @ApiModelProperty(value = "送达状态：送达成功 送达失败 送达错误 送达中 已退回")
    private String status;

    @ApiModelProperty(value = "发送时间")
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "退回时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date backTime;



}
